﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NeuralNetworks.Neurons;

namespace NeuralNetworks
{
    public class Connection
    {
        private Neuron n;
        private double weight;
        //public string name;

        public Neuron N
        {
            get { return this.n; }
            set { this.n = value; }
        }
        public double Weight
        {
            get { return this.weight; }
            set { this.weight = value; }
        }

        public Connection(Neuron n, double w)
        {
            if (n == null) { throw (new NeuralNetworksException()); };
            this.n = n;
            this.weight = w;
        }
    }
}
